package net.lahuobao.mall.entity.admin;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 推荐历史
 * @author zhangdaihao
 * @date 2016-09-16 14:01:00
 * @version V1.0   
 *
 */
@Entity
@Table(name = "mall_product_recommend_history", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class MallProductRecommendHistoryEntity implements java.io.Serializable {
	/**id*/
	private java.lang.Integer id;
	/**productname*/
	private java.lang.String productname;
	/**imagesrc*/
	private java.lang.String imagesrc;
	/**productid*/
	private java.lang.Integer productid;
	/**recommendtype*/
	private java.lang.Integer recommendtype;
	/**sort*/
	private java.lang.Integer sort;
	/**createtime*/
	private java.util.Date createtime;
	/**createuserid*/
	private java.lang.Integer createuserid;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  id
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="ID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  id
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  productname
	 */
	@Column(name ="PRODUCTNAME",nullable=false,length=100)
	public java.lang.String getProductname(){
		return this.productname;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  productname
	 */
	public void setProductname(java.lang.String productname){
		this.productname = productname;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  imagesrc
	 */
	@Column(name ="IMAGESRC",nullable=false,length=200)
	public java.lang.String getImagesrc(){
		return this.imagesrc;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  imagesrc
	 */
	public void setImagesrc(java.lang.String imagesrc){
		this.imagesrc = imagesrc;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  productid
	 */
	@Column(name ="PRODUCTID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getProductid(){
		return this.productid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  productid
	 */
	public void setProductid(java.lang.Integer productid){
		this.productid = productid;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  recommendtype
	 */
	@Column(name ="RECOMMENDTYPE",nullable=false,precision=10,scale=0)
	public java.lang.Integer getRecommendtype(){
		return this.recommendtype;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  recommendtype
	 */
	public void setRecommendtype(java.lang.Integer recommendtype){
		this.recommendtype = recommendtype;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  sort
	 */
	@Column(name ="SORT",nullable=false,precision=10,scale=0)
	public java.lang.Integer getSort(){
		return this.sort;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  sort
	 */
	public void setSort(java.lang.Integer sort){
		this.sort = sort;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  createtime
	 */
	@Column(name ="CREATETIME",nullable=false)
	public java.util.Date getCreatetime(){
		return this.createtime;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  createtime
	 */
	public void setCreatetime(java.util.Date createtime){
		this.createtime = createtime;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  createuserid
	 */
	@Column(name ="CREATEUSERID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getCreateuserid(){
		return this.createuserid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  createuserid
	 */
	public void setCreateuserid(java.lang.Integer createuserid){
		this.createuserid = createuserid;
	}
}
